package com.cocola.service;

import com.cocola.mapper.DateMapper;
import com.cocola.pojo.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DateService {

    @Autowired
    private DateMapper dateMapper;

    public void add(String idPhoto, String postdoctoralPhoto, String certificatePhoto, String laborcontractPhoto) {

        Date date = new Date();
        date.setIdPhoto(idPhoto);
        date.setPostdoctoralPhoto(postdoctoralPhoto);
        date.setCertificatePhoto(certificatePhoto);
        date.setLaborcontractPhoto(laborcontractPhoto);
        dateMapper.insert(date);
    }
}
